#include <stdio.h>
#define SIZE 500
int getCards(double length);
double store[SIZE];
int main(){
	//if <0.01 or >5.20
	for (int i=0;i<SIZE;i++)
	{
		store[i]=0;
	}
	double length=0;
	while(scanf("%lf",&length)!=EOF){
		if(length>=0.01&&length<=5.20){
			int cards =getCards(length);
			printf("%d card(s)\n",cards);
		}
	}

	return 0;
}

int getCards(double length){
	int i=1;
	while(store[i]!=0){
		if(store[i]>=length)
			return i;
		i++;
	}
	//store[i]=0
	//i--;
	while (store[i-1]<length)
	{
		store[i]=store[i-1]+1.0/(i+1);
		i++;
	}
	return i-1;
}